extends ../layout

block content
    .container
        .row
            p
                ol.breadcrumb
                    li
                        a(href="/admin") 后台首页
                    li 电影列表
            form.form-horizontal(method="POST",action="/admin/add")
                input(type="hidden" name="movie[_id]" value="#{movie._id}")
                .form-group
                    label(for="title",class="control-label col-md-3") 电影名称
                    .col-md-6
                        input(type="text",name="movie[title]",id="title",class="form-control",value="#{movie.title}")
                .form-group
                    label(for="doctor",class="control-label col-md-3") 导演
                    .col-md-6
                        input(type="text",name="movie[doctor]",id="doctor",class="form-control",value="#{movie.doctor}")
                .form-group
                    label(for="country",class="control-label col-md-3") 国家
                    .col-md-6
                        input(type="text",name="movie[country]",id="country",class="form-control",value="#{movie.country}")
                .form-group
                    label(for="year",class="control-label col-md-3") 年份
                    .col-md-6
                        input(type="text",name="movie[year]",id="year",class="form-control",value="#{movie.year}")
                .form-group
                    label(for="language",class="control-label col-md-3") 语言
                    .col-md-6
                        input(type="text",name="movie[language]",id="language",class="form-control",value="#{movie.language}")
                .form-group
                    label(for="flash",class="control-label col-md-3") 播放地址
                    .col-md-6
                        input(type="text",name="movie[flash]",id="flash",class="form-control",value="#{movie.flash}")
                .form-group
                    label(for="poster",class="control-label col-md-3") 海报
                    .col-md-6
                        input(type="text",name="movie[poster]",id="poster",class="form-control",value="#{movie.poster}")
                .form-group
                    label(for="summary",class="control-label col-md-3") 电影描述
                    .col-md-6
                        textarea(name="movie[summary]",id="summary",class="form-control") #{movie.summary}
                .form-group
                    .col-md-offset-3.col-md-6
                        input(type="submit" class="btn btn-success")